package com.lys.gen;

import com.lys.effect.ModEffects;
import com.lys.enchantment.ModEnchantments;
import com.lys.enchantment.armor.PerseveranceEnchantment;
import com.lys.enchantment.bow.ExplosiveArrowEnchantment;
import com.lys.enchantment.bow.MultiArrowEnchantment;
import com.lys.enchantment.bow.QuickPullingEnchantment;
import com.lys.enchantment.weapon.BloodthirstySwordEnchantment;
import com.lys.enchantment.weapon.LightningAxeEnchantment;
import com.lys.item.ModItemGroups;
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import net.fabricmc.fabric.api.datagen.v1.provider.FabricLanguageProvider;

public class ModLanguageZhCNGenerator extends FabricLanguageProvider {
    public ModLanguageZhCNGenerator(FabricDataOutput dataOutput) {
        super(dataOutput,"zh_cn");
    }

    @Override
    public void generateTranslations(TranslationBuilder translationBuilder) {
        translationBuilder.add(ModEnchantments.EXPLOSIVE_ARROW,"爆炸箭矢");
        translationBuilder.add(ModEnchantments.QUICK_PULLING,"快速拉弓");
        translationBuilder.add(ModEnchantments.MULTI_ARROW,"多重箭矢");
        translationBuilder.add(ModEnchantments.PERSEVERANCE,"坚毅不倒");
        translationBuilder.add(ModEnchantments.BLOODTHIRSTY_SWORD,"嗜血之剑");

        translationBuilder.add(ExplosiveArrowEnchantment.EXPLOSIVE_ARROW_TIP_TRANSLATION_KEY,"箭矢命中后有概率在3秒后爆炸");
        translationBuilder.add(QuickPullingEnchantment.QUICK_PULLING_TIP_TRANSLATION_KEY,"加快拉弓速度");
        translationBuilder.add(MultiArrowEnchantment.MULTI_ARROW_TIP_TRANSLATION_KEY,"发射箭矢会分裂出额外箭矢");
        translationBuilder.add(PerseveranceEnchantment.PERSEVERANCE_TIP_TRANSLATION_KEY,"濒死时获得(附魔等级+1)秒的坚毅不倒效果在效果内免疫死亡,冷却180秒");
        translationBuilder.add(BloodthirstySwordEnchantment.BLOODTHIRSTY_SWORD_TIP_TRANSLATION_KEY,"攻击目标时会扣除自身1点生命值获得3秒附魔等级的狂化效果(伤害，移速，攻速,抗击退提升)");
        translationBuilder.add(LightningAxeEnchantment.LIGHTNING_AXE_TIP_TRANSLATION_KEY,"提升斧头攻击力，且攻击目标有概率召唤闪电且获得引雷效果(在身边的环形区域不断召唤闪电)");


        translationBuilder.add(ModEffects.RESILIENCE,"坚毅不倒");
        translationBuilder.add(ModEffects.MADNESS,"狂化");

        translationBuilder.add("tip_translation_key","按住shift查看详细信息");
        translationBuilder.add(ModItemGroups.MOD_GROUP_TRANSLATION_KEY,"更多附魔");
    }
}
